package InterfaceExample;

import java.util.ArrayList;

public class ClassManager {
    // 存储全班
    private ArrayList<Stu> students = new ArrayList<>();
    private StudentOperator studentOperator = new printOperatorlmpl2();
    public ClassManager(){
        students.add(new Stu("yyx", 'm', 100));
        students.add(new Stu("xxy", 'm', 99));
        students.add(new Stu("ggb", 'w', 80));
        students.add(new Stu("yuu", 'w', 90));
    }

    public void printInfo(){
        studentOperator.printAllInfo(students);
    }

    public void printScore(){
        studentOperator.printArgScore(students);
    }

}
